/**
 */
package ar.edu.phm.tp.cuatro.planificacionDsl.planificacion;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Nombre Dia</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * @see ar.edu.phm.tp.cuatro.planificacionDsl.planificacion.PlanificacionPackage#getNombreDia()
 * @model
 * @generated
 */
public enum NombreDia implements Enumerator
{
  /**
   * The '<em><b>Domingo</b></em>' literal object.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @see #DOMINGO_VALUE
   * @generated
   * @ordered
   */
  DOMINGO(0, "Domingo", "Domingo"),

  /**
   * The '<em><b>Lunes</b></em>' literal object.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @see #LUNES_VALUE
   * @generated
   * @ordered
   */
  LUNES(1, "Lunes", "Lunes"),

  /**
   * The '<em><b>Martes</b></em>' literal object.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @see #MARTES_VALUE
   * @generated
   * @ordered
   */
  MARTES(2, "Martes", "Martes"),

  /**
   * The '<em><b>Miercoles</b></em>' literal object.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @see #MIERCOLES_VALUE
   * @generated
   * @ordered
   */
  MIERCOLES(3, "Miercoles", "Miercoles"),

  /**
   * The '<em><b>Jueves</b></em>' literal object.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @see #JUEVES_VALUE
   * @generated
   * @ordered
   */
  JUEVES(4, "Jueves", "Jueves"),

  /**
   * The '<em><b>Viernes</b></em>' literal object.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @see #VIERNES_VALUE
   * @generated
   * @ordered
   */
  VIERNES(5, "Viernes", "Viernes"),

  /**
   * The '<em><b>Sabado</b></em>' literal object.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @see #SABADO_VALUE
   * @generated
   * @ordered
   */
  SABADO(6, "Sabado", "Sabado");

  /**
   * The '<em><b>Domingo</b></em>' literal value.
   * <!-- begin-user-doc -->
   * <p>
   * If the meaning of '<em><b>Domingo</b></em>' literal object isn't clear,
   * there really should be more of a description here...
   * </p>
   * <!-- end-user-doc -->
   * @see #DOMINGO
   * @model name="Domingo"
   * @generated
   * @ordered
   */
  public static final int DOMINGO_VALUE = 0;

  /**
   * The '<em><b>Lunes</b></em>' literal value.
   * <!-- begin-user-doc -->
   * <p>
   * If the meaning of '<em><b>Lunes</b></em>' literal object isn't clear,
   * there really should be more of a description here...
   * </p>
   * <!-- end-user-doc -->
   * @see #LUNES
   * @model name="Lunes"
   * @generated
   * @ordered
   */
  public static final int LUNES_VALUE = 1;

  /**
   * The '<em><b>Martes</b></em>' literal value.
   * <!-- begin-user-doc -->
   * <p>
   * If the meaning of '<em><b>Martes</b></em>' literal object isn't clear,
   * there really should be more of a description here...
   * </p>
   * <!-- end-user-doc -->
   * @see #MARTES
   * @model name="Martes"
   * @generated
   * @ordered
   */
  public static final int MARTES_VALUE = 2;

  /**
   * The '<em><b>Miercoles</b></em>' literal value.
   * <!-- begin-user-doc -->
   * <p>
   * If the meaning of '<em><b>Miercoles</b></em>' literal object isn't clear,
   * there really should be more of a description here...
   * </p>
   * <!-- end-user-doc -->
   * @see #MIERCOLES
   * @model name="Miercoles"
   * @generated
   * @ordered
   */
  public static final int MIERCOLES_VALUE = 3;

  /**
   * The '<em><b>Jueves</b></em>' literal value.
   * <!-- begin-user-doc -->
   * <p>
   * If the meaning of '<em><b>Jueves</b></em>' literal object isn't clear,
   * there really should be more of a description here...
   * </p>
   * <!-- end-user-doc -->
   * @see #JUEVES
   * @model name="Jueves"
   * @generated
   * @ordered
   */
  public static final int JUEVES_VALUE = 4;

  /**
   * The '<em><b>Viernes</b></em>' literal value.
   * <!-- begin-user-doc -->
   * <p>
   * If the meaning of '<em><b>Viernes</b></em>' literal object isn't clear,
   * there really should be more of a description here...
   * </p>
   * <!-- end-user-doc -->
   * @see #VIERNES
   * @model name="Viernes"
   * @generated
   * @ordered
   */
  public static final int VIERNES_VALUE = 5;

  /**
   * The '<em><b>Sabado</b></em>' literal value.
   * <!-- begin-user-doc -->
   * <p>
   * If the meaning of '<em><b>Sabado</b></em>' literal object isn't clear,
   * there really should be more of a description here...
   * </p>
   * <!-- end-user-doc -->
   * @see #SABADO
   * @model name="Sabado"
   * @generated
   * @ordered
   */
  public static final int SABADO_VALUE = 6;

  /**
   * An array of all the '<em><b>Nombre Dia</b></em>' enumerators.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  private static final NombreDia[] VALUES_ARRAY =
    new NombreDia[]
    {
      DOMINGO,
      LUNES,
      MARTES,
      MIERCOLES,
      JUEVES,
      VIERNES,
      SABADO,
    };

  /**
   * A public read-only list of all the '<em><b>Nombre Dia</b></em>' enumerators.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public static final List<NombreDia> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

  /**
   * Returns the '<em><b>Nombre Dia</b></em>' literal with the specified literal value.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public static NombreDia get(String literal)
  {
    for (int i = 0; i < VALUES_ARRAY.length; ++i)
    {
      NombreDia result = VALUES_ARRAY[i];
      if (result.toString().equals(literal))
      {
        return result;
      }
    }
    return null;
  }

  /**
   * Returns the '<em><b>Nombre Dia</b></em>' literal with the specified name.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public static NombreDia getByName(String name)
  {
    for (int i = 0; i < VALUES_ARRAY.length; ++i)
    {
      NombreDia result = VALUES_ARRAY[i];
      if (result.getName().equals(name))
      {
        return result;
      }
    }
    return null;
  }

  /**
   * Returns the '<em><b>Nombre Dia</b></em>' literal with the specified integer value.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public static NombreDia get(int value)
  {
    switch (value)
    {
      case DOMINGO_VALUE: return DOMINGO;
      case LUNES_VALUE: return LUNES;
      case MARTES_VALUE: return MARTES;
      case MIERCOLES_VALUE: return MIERCOLES;
      case JUEVES_VALUE: return JUEVES;
      case VIERNES_VALUE: return VIERNES;
      case SABADO_VALUE: return SABADO;
    }
    return null;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  private final int value;

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  private final String name;

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  private final String literal;

  /**
   * Only this class can construct instances.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  private NombreDia(int value, String name, String literal)
  {
    this.value = value;
    this.name = name;
    this.literal = literal;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public int getValue()
  {
    return value;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public String getName()
  {
    return name;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public String getLiteral()
  {
    return literal;
  }

  /**
   * Returns the literal value of the enumerator, which is its string representation.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  @Override
  public String toString()
  {
    return literal;
  }
  
} //NombreDia
